package Demo1;

/**
 * Created with  IntelliJ IDEA .
 * Description:
 * User: lenovo
 * Date: 2025-${ MONTH }-17
 * Time: 22:42
 */
public class Test {

    public static void  func(Animal animal){
        animal.eat();
    }

    public static void main(String[] args) {

        Dog dog = new Dog();
        dog.name = "旺财";
        Bird bird =new Bird();
        func(dog);



    }
}
